package com.example.computerstroe.Tool;

import org.springframework.stereotype.Component;
import org.springframework.util.DigestUtils;

@Component("Tool")
public class Tool {
    public String MD5(String salt,String password){
        String result=password;
        for(int i=0;i<3;i++)
        result=DigestUtils.md5DigestAsHex((salt+result+salt).getBytes());
        return result;
    }
}
